<?xml version="1.0"?>
<xs:schema xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/PurchaseRequisition" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/dynamics/2008/01/documents/PurchaseRequisition" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="PurchaseRequisition" type="AxdPurchaseRequisition" />
  <xs:complexType name="AxdPurchaseRequisition">
    <xs:sequence>
      <xs:element minOccurs="0" name="DocPurpose" nillable="true" type="AxdEnum_XMLDocPurpose" />
      <xs:element minOccurs="0" name="SenderId" nillable="true" type="AxdExtType_dataAreaId" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="VendPurchOrderJour" type="AxdEntity_VendPurchOrderJour" />
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="AxdEnum_XMLDocPurpose">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Purpose:Purpose</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="Original" />
      <xs:enumeration value="Duplicate" />
      <xs:enumeration value="Proforma" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_dataAreaId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Company:ID for an area of data</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="4" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdEnum_AxdEntityAction">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">AxdEntityAction:AxdEntityAction</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="create" />
      <xs:enumeration value="update" />
      <xs:enumeration value="replace" />
      <xs:enumeration value="delete" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AxdEntity_VendPurchOrderJour">
    <xs:sequence>
      <xs:element minOccurs="0" name="_DocumentHash" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Amount" nillable="true" type="AxdExtType_AmountCur" />
      <xs:element minOccurs="0" name="AmountPurchaseOrder" nillable="true" type="AxdExtType_PurchAmountPurchaseOrder" />
      <xs:element minOccurs="0" name="CashDiscCode" nillable="true" type="AxdExtType_VendCashDiscCode" />
      <xs:element minOccurs="0" name="CountryRegionId" nillable="true" type="AxdUnion_AxdExtType_AddressCountryRegionId_AxdType_ExtCodeValue" />
      <xs:element minOccurs="1" name="CurrencyCode" type="AxdUnion_AxdExtType_VendCurrencyCode_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="CustomerRef" nillable="true" type="AxdExtType_CustRefLine" />
      <xs:element minOccurs="0" name="CustPurchaseorderFormNum" nillable="true" type="AxdExtType_CustPurchaseOrder" />
      <xs:element minOccurs="0" name="DeliveryAddress" nillable="true" type="AxdExtType_Addressing" />
      <xs:element minOccurs="0" name="DeliveryCity" nillable="true" type="AxdExtType_AddressCity" />
      <xs:element minOccurs="0" name="DeliveryCountryRegionId" nillable="true" type="AxdUnion_AxdExtType_AddressCountryRegionId_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="DeliveryCounty" nillable="true" type="AxdUnion_AxdExtType_AddressCountyId_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="DeliveryDate" nillable="true" type="AxdExtType_DlvDate" />
      <xs:element minOccurs="0" name="DeliveryName" nillable="true" type="AxdExtType_VendName" />
      <xs:element minOccurs="0" name="DeliveryState" nillable="true" type="AxdUnion_AxdExtType_AddressStateId_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="DeliveryStreet" nillable="true" type="AxdExtType_AddressStreet" />
      <xs:element minOccurs="0" name="DeliveryType" nillable="true" type="AxdExtType_PurchDlvAddrType" />
      <xs:element minOccurs="0" name="DeliveryZipCode" nillable="true" type="AxdUnion_AxdExtType_AddressZipCodeId_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="Dimension" nillable="true" type="AxdArray_AxdExtType_Dimension" />
      <xs:element minOccurs="0" name="DlvMode" nillable="true" type="AxdUnion_AxdExtType_VendDlvModeId_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="DlvTerm" nillable="true" type="AxdUnion_AxdExtType_VendDlvTermId_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="EndDisc" nillable="true" type="AxdExtType_PurchEndDiscAmount" />
      <xs:element minOccurs="0" name="ExchRate" nillable="true" type="AxdExtType_VendExchRate" />
      <xs:element minOccurs="0" name="ExchRateSecondary" nillable="true" type="AxdExtType_ExchrateSecondary" />
      <xs:element minOccurs="0" name="FixedDueDate" nillable="true" type="AxdExtType_PurchFixedDueDate" />
      <xs:element minOccurs="0" name="InclTax" nillable="true" type="AxdExtType_InclTax" />
      <xs:element minOccurs="0" name="InterCompanyPosted" nillable="true" type="AxdExtType_InterCompanyPosted" />
      <xs:element minOccurs="1" name="InvoiceAccount" type="AxdUnion_AxdExtType_VendInvoiceAccount_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="ItemBuyerGroupId" nillable="true" type="AxdExtType_ItemBuyerGroupId" />
      <xs:element minOccurs="1" name="LanguageId" type="AxdExtType_VendLanguageId" />
      <xs:element minOccurs="1" name="OrderAccount" type="AxdUnion_AxdExtType_VendAccount_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="ParmId" nillable="true" type="AxdExtType_ParmId" />
      <xs:element minOccurs="0" name="Payment" nillable="true" type="AxdExtType_VendPaymTermId" />
      <xs:element minOccurs="1" name="PurchaseOrderId" type="AxdExtType_PurchaseOrderId" />
      <xs:element minOccurs="1" name="PurchId" type="AxdExtType_PurchIdBase" />
      <xs:element minOccurs="1" name="PurchOrderDate" type="AxdExtType_TransDate" />
      <xs:element minOccurs="0" name="PurchOrderDocNum" nillable="true" type="AxdExtType_PurchaseOrderId" />
      <xs:element minOccurs="0" name="Qty" nillable="true" type="AxdExtType_PurchOrderedQty" />
      <xs:element minOccurs="0" name="RecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="RecVersion" nillable="true" type="AxdExtType_recVersion" />
      <xs:element minOccurs="0" name="ReqAttention" nillable="true" type="AxdExtType_PurchReqAttention" />
      <xs:element minOccurs="0" name="Requisitioner" nillable="true" type="AxdExtType_PurchRequisitioner" />
      <xs:element minOccurs="0" name="RoundOff" nillable="true" type="AxdExtType_RoundOff" />
      <xs:element minOccurs="0" name="SalesOrderbalance" nillable="true" type="AxdExtType_AmountCur" />
      <xs:element minOccurs="0" name="Status" nillable="true" type="AxdEnum_QuotationStatus" />
      <xs:element minOccurs="0" name="SumLineDisc" nillable="true" type="AxdExtType_PurchSumLineDiscAmount" />
      <xs:element minOccurs="0" name="SumMarkup" nillable="true" type="AxdExtType_MarkupSumPurch" />
      <xs:element minOccurs="0" name="SumTax" nillable="true" type="AxdExtType_TaxAmountCur" />
      <xs:element minOccurs="0" name="Triangulation" nillable="true" type="AxdExtType_EUROTriangulation" />
      <xs:element minOccurs="1" name="VendGroup" type="AxdExtType_VendGroupId" />
      <xs:element minOccurs="0" name="Volume" nillable="true" type="AxdExtType_Volume" />
      <xs:element minOccurs="0" name="Weight" nillable="true" type="AxdExtType_Weight" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="VendPurchOrderTrans" type="AxdEntity_VendPurchOrderTrans" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DocuRefJour" type="AxdEntity_DocuRefJour" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="TaxJournalTrans" type="AxdEntity_TaxJournalTrans" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="FormLetterRemarks" type="AxdEntity_FormLetterRemarks" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="AxdEnum_AxdEntityAction" />
  </xs:complexType>
  <xs:simpleType name="AxdExtType_AmountCur">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Amount currency:Amount in currency.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdType_Decimal">
    <xs:restriction base="xs:decimal" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchAmountPurchaseOrder">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Purchase order prices/amount:Print prices and amounts on purchase order?</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="No" />
      <xs:enumeration value="Yes" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendCashDiscCode">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Cash discount:Cash discount code for subsequent approval.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdType_ExtCodeValue">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Value:Actual value of the related record according to the selected external code type.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="50" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_AddressCountryRegionId_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_AddressCountryRegionId AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_AddressCountryRegionId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Country/region:Specifies default native country/region in connection with addresses.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_VendCurrencyCode_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_VendCurrencyCode AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendCurrencyCode">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Currency:Current currency code.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="3" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_CustRefLine">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Customer reference:Customer's reference</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="60" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_CustPurchaseOrder">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Customer requisition:Customer requisition number</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_Addressing">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Address:Addressee - Enter address and ZIP/postal Code; the rest will be inserted if the postal code exists in the postal code table.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="250" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_AddressCity">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">City:City for ZIP/postal Code.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="60" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_AddressCountyId_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_AddressCountyId AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_AddressCountyId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">County:Specifies a county within a state in the current country/region.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_DlvDate">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Delivery date:Transaction date.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:date" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendName">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Name:Name of vendor.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="60" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_AddressStateId_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_AddressStateId AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_AddressStateId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">State:Identification of state.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_AddressStreet">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Street name:Enter the street name of the address.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="250" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchDlvAddrType">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Delivery location:Specify delivery address, that is none, company, project</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="None" />
      <xs:enumeration value="Company" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_AddressZipCodeId_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_AddressZipCodeId AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_AddressZipCodeId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">ZIP/postal Code:Identify ZIP/postal Code district.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AxdArray_AxdExtType_Dimension">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Department:Department number.
Cost center:Cost center number.
Purpose:Purpose number.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element minOccurs="3" maxOccurs="3" name="element" type="AxdExtType_Dimension" />
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="AxdExtType_Dimension">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US" />
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_VendDlvModeId_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_VendDlvModeId AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendDlvModeId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Mode of delivery:Unique identification of delivery mode</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_VendDlvTermId_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_VendDlvTermId AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendDlvTermId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Delivery terms:Specify standard terms of delivery for vendor.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchEndDiscAmount">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Total discount:Amount in currency.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendExchRate">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Exchange rate:Exchange rate of invoice currency (%1 = 1.0)</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="12" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_ExchrateSecondary">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Secondary exchange rate:Rate of the secondary part of the currency calculation, when triangulation is used.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="12" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchFixedDueDate">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Due date:Due date independent of terms of payment.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:date" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InclTax">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Prices incl. sales tax:Do prices include sales tax?</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="No" />
      <xs:enumeration value="Yes" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InterCompanyPosted">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Posted via intercompany:The journal was posted automatically via intercompany</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="No" />
      <xs:enumeration value="Yes" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_VendInvoiceAccount_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_VendInvoiceAccount AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendInvoiceAccount">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Invoice account:Vendor invoice account.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_ItemBuyerGroupId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Buyer group:Identification of the buyer group.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendLanguageId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Language:Select the language for the current text.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="7" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_VendAccount_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_VendAccount AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendAccount">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Vendor account:Vendor account number.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_ParmId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Parameter ID:Number of the reporting (one total update).</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendPaymTermId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Terms of payment:Code for the terms of payment.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchaseOrderId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Purchase order:Identification of the purchase order</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchIdBase">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Purchase order:Identification of the purchase.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TransDate">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Date:Transaction date.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:date" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchOrderedQty">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Quantity:Quantity ordered in purchase unit</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_recId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Record-ID:Unique ID for the record in the database</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Int64" />
  </xs:simpleType>
  <xs:simpleType name="AxdType_Int64">
    <xs:restriction base="xs:long">
      <xs:minInclusive value="-9223372036854775808" />
      <xs:maxInclusive value="9223372036854775807" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_recVersion">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Record Version:Version of the record in the database</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Integer" />
  </xs:simpleType>
  <xs:simpleType name="AxdType_Integer">
    <xs:restriction base="xs:int">
      <xs:minInclusive value="-2147483648" />
      <xs:maxInclusive value="2147483647" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchReqAttention">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Attention information:Attention information for the purchase requisition</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="255" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchRequisitioner">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Requisitioner:Employee number.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_RoundOff">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Round-off:Amount in currency.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdEnum_QuotationStatus">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Quotation status:Quotation status</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="Created" />
      <xs:enumeration value="Approved" />
      <xs:enumeration value="Printed" />
      <xs:enumeration value="Accepted" />
      <xs:enumeration value="Rejected" />
      <xs:enumeration value="Obsolete" />
      <xs:enumeration value="Cancelled" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchSumLineDiscAmount">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Line discount:Line discount total of the lines</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_MarkupSumPurch">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Total misc. charges:Total of misc. charges on invoice for lines and header.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxAmountCur">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Sales tax amount:Calculated sales tax amount in the sales tax settlement currency</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_EUROTriangulation">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Triangulation:Specify whether the exchange rate is included in triangulation.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="No" />
      <xs:enumeration value="Yes" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_VendGroupId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Vendor group:Group of vendors.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_Volume">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Volume:Volume of the item</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_Weight">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Weight:Specification of weight.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AxdEntity_VendPurchOrderTrans">
    <xs:sequence>
      <xs:element minOccurs="1" name="CurrencyCode" type="AxdUnion_AxdExtType_VendCurrencyCode_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="DeliveryDate" nillable="true" type="AxdExtType_DlvDate" />
      <xs:element minOccurs="0" name="Dimension" nillable="true" type="AxdArray_AxdExtType_Dimension" />
      <xs:element minOccurs="0" name="DiscAmount" nillable="true" type="AxdExtType_PurchDiscAmount" />
      <xs:element minOccurs="0" name="DiscPercent" nillable="true" type="AxdExtType_PurchDiscPercent" />
      <xs:element minOccurs="0" name="ExternalItemId" nillable="true" type="AxdExtType_PurchExternalItemId" />
      <xs:element minOccurs="0" name="InventDimId" nillable="true" type="AxdExtType_InventDimId" />
      <xs:element minOccurs="0" name="InventQty" nillable="true" type="AxdExtType_InventQty" />
      <xs:element minOccurs="0" name="InventTransId" nillable="true" type="AxdExtType_InventTransId" />
      <xs:element minOccurs="0" name="ItemId" nillable="true" type="AxdUnion_AxdExtType_ItemId_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="LineAmount" nillable="true" type="AxdExtType_AmountCur" />
      <xs:element minOccurs="0" name="LineAmountTax" nillable="true" type="AxdExtType_LineAmountTax" />
      <xs:element minOccurs="0" name="LineDisc" nillable="true" type="AxdExtType_PurchLineDisc" />
      <xs:element minOccurs="0" name="LineHeader" nillable="true" type="AxdExtType_LineHeader" />
      <xs:element minOccurs="0" name="LineNum" nillable="true" type="AxdExtType_LineNum" />
      <xs:element minOccurs="0" name="LinePercent" nillable="true" type="AxdExtType_PurchLinePercent" />
      <xs:element minOccurs="0" name="MultiLnDisc" nillable="true" type="AxdExtType_PurchMultiLnDisc" />
      <xs:element minOccurs="0" name="MultiLnPercent" nillable="true" type="AxdExtType_PurchMultiLnPercent" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="AxdExtType_ItemFreeTxt" />
      <xs:element minOccurs="0" name="OrigPurchId" nillable="true" type="AxdExtType_PurchIdOrig" />
      <xs:element minOccurs="0" name="PriceUnit" nillable="true" type="AxdExtType_PriceUnit" />
      <xs:element minOccurs="1" name="PurchaseOrderId" type="AxdExtType_PurchaseOrderId" />
      <xs:element minOccurs="1" name="purchId" type="AxdExtType_PurchId" />
      <xs:element minOccurs="0" name="PurchMarkup" nillable="true" type="AxdExtType_PurchMarkup" />
      <xs:element minOccurs="1" name="PurchOrderDate" type="AxdExtType_TransDate" />
      <xs:element minOccurs="0" name="PurchPrice" nillable="true" type="AxdExtType_PurchPrice" />
      <xs:element minOccurs="0" name="PurchUnit" nillable="true" type="AxdUnion_AxdExtType_PurchUnit_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="Qty" nillable="true" type="AxdExtType_PurchOrderedQty" />
      <xs:element minOccurs="0" name="RecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="RecVersion" nillable="true" type="AxdExtType_recVersion" />
      <xs:element minOccurs="0" name="TaxAmount" nillable="true" type="AxdExtType_TaxAmountCur" />
      <xs:element minOccurs="0" name="TaxGroup" nillable="true" type="AxdExtType_TaxGroup" />
      <xs:element minOccurs="0" name="TaxItemGroup" nillable="true" type="AxdExtType_TaxItemGroup" />
      <xs:element minOccurs="0" name="TaxWriteCode" nillable="true" type="AxdExtType_TaxWriteCode" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="InventReportDimHistory" type="AxdEntity_InventReportDimHistory" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DocuRefTrans" type="AxdEntity_DocuRefTrans" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="AxdEnum_AxdEntityAction" />
  </xs:complexType>
  <xs:simpleType name="AxdExtType_PurchDiscAmount">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Discount:Amount in currency.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchDiscPercent">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Disc. pct.:Discount in percentage.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchExternalItemId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">External:Vendor's item number</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InventDimId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Dimension No.:Identification of dimensions for the item.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InventQty">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Quantity:Quantity in the inventory units of the item.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InventTransId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Lot ID:Identification of the item lot.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_ItemId_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_ItemId AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_ItemId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Item number:Identify item.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_LineAmountTax">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Sales tax included in amount:Sales tax amount included in the amount because sales tax is included in prices</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchLineDisc">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Discount:Line discount in amount per price unit.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_LineHeader">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Line heading:Text describing the line</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="80" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_LineNum">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Line No:Identification of line.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchLinePercent">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Disc. pct.:Line discount percentage.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchMultiLnDisc">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Multiline discount:Multiline discount per price unit</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchMultiLnPercent">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Multiline discount %:Multiline discount percentage</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_ItemFreeTxt">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Text:Standard item description.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="1000" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchIdOrig">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Purchase order:Purchase that the line is generated from</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PriceUnit">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Price unit:Number of units the price is specified in.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Purchase order:Identification of the purchase.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchMarkup">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Purchase misc. charges:Fixed misc. charges on price, applied once for each invoice.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchPrice">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Purchase price:Run-dependent price per unit.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_PurchUnit_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_PurchUnit AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_PurchUnit">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Unit:Unit in which the item is purchased.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxGroup">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Sales tax group:Group of sales tax codes that can be calculated for sale and purchase.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxItemGroup">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Item sales tax group:Group of sales tax codes that can be calculated for an item.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxWriteCode">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Print code:Code printed on the voucher.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AxdEntity_InventReportDimHistory">
    <xs:sequence>
      <xs:element minOccurs="0" name="InventDimId" nillable="true" type="AxdExtType_InventDimId" />
      <xs:element minOccurs="0" name="InventTransId" nillable="true" type="AxdExtType_InventTransId" />
      <xs:element minOccurs="0" name="Qty" nillable="true" type="AxdExtType_InventQty" />
      <xs:element minOccurs="0" name="RecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="RecVersion" nillable="true" type="AxdExtType_recVersion" />
      <xs:element minOccurs="0" name="TransactionLogType" nillable="true" type="AxdEnum_InventReportDimHistoryLogType" />
      <xs:element minOccurs="0" name="TransRefId" nillable="true" type="AxdExtType_InventTransRefId" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="InventDim" type="AxdEntity_InventDim" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="AxdEnum_AxdEntityAction" />
  </xs:complexType>
  <xs:simpleType name="AxdEnum_InventReportDimHistoryLogType">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Type:Type</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="None" />
      <xs:enumeration value="PurchPurchaseOrder" />
      <xs:enumeration value="SalesQuotation" />
      <xs:enumeration value="ProdJournalBOM" />
      <xs:enumeration value="ProdJournalProd" />
      <xs:enumeration value="SalesPackingSlip" />
      <xs:enumeration value="SalesInvoice" />
      <xs:enumeration value="DEL_InventPickingList" />
      <xs:enumeration value="SalesConfirm" />
      <xs:enumeration value="PurchReceiptList" />
      <xs:enumeration value="PurchPackingSlip" />
      <xs:enumeration value="PurchInvoice" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InventTransRefId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Number:Order number, project number, production number, etc.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AxdEntity_InventDim">
    <xs:sequence>
      <xs:element minOccurs="0" name="configId" nillable="true" type="AxdExtType_ConfigId" />
      <xs:element minOccurs="0" name="InventBatchId" nillable="true" type="AxdExtType_InventBatchId" />
      <xs:element minOccurs="0" name="InventColorId" nillable="true" type="AxdExtType_InventColorId" />
      <xs:element minOccurs="0" name="inventDimId" nillable="true" type="AxdExtType_InventDimId" />
      <xs:element minOccurs="0" name="InventLocationId" nillable="true" type="AxdExtType_InventLocationId" />
      <xs:element minOccurs="0" name="inventSerialId" nillable="true" type="AxdExtType_InventSerialId" />
      <xs:element minOccurs="0" name="InventSiteId" nillable="true" type="AxdExtType_InventSiteId" />
      <xs:element minOccurs="0" name="InventSizeId" nillable="true" type="AxdExtType_InventSizeId" />
      <xs:element minOccurs="0" name="RecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="RecVersion" nillable="true" type="AxdExtType_recVersion" />
      <xs:element minOccurs="0" name="wMSLocationId" nillable="true" type="AxdExtType_WMSLocationId" />
      <xs:element minOccurs="0" name="wMSPalletId" nillable="true" type="AxdExtType_WMSPalletId" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="AxdEnum_AxdEntityAction" />
  </xs:complexType>
  <xs:simpleType name="AxdExtType_ConfigId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Configuration:Identification of item configuration.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InventBatchId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Batch number:Batch dimension.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InventColorId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Color:Identification of item color.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InventLocationId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Warehouse:Identify the warehouse.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InventSerialId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Serial number:Serial number dimension.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InventSiteId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Site:Identify the site</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_InventSizeId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Size:Identification of item size.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_WMSLocationId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Location:Location in a warehouse.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_WMSPalletId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Pallet ID:Unique ID for the pallet (Serial Shipping Container Code)</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="18" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AxdEntity_DocuRefTrans">
    <xs:sequence>
      <xs:element minOccurs="0" name="ActualCompanyId" nillable="true" type="AxdExtType_selectableDataArea" />
      <xs:element minOccurs="0" name="AuthorId" nillable="true" type="AxdExtType_smmDocuAuthorId" />
      <xs:element minOccurs="0" name="ContactPersonId" nillable="true" type="AxdExtType_ContactPersonId" />
      <xs:element minOccurs="0" name="EncyclopediaItemId" nillable="true" type="AxdExtType_smmEncyclopediaItemId" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="AxdExtType_Description" />
      <xs:element minOccurs="0" name="Notes" nillable="true" type="AxdExtType_Notes" />
      <xs:element minOccurs="0" name="PartyId" nillable="true" type="AxdExtType_DirPartyId" />
      <xs:element minOccurs="0" name="RecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="RecVersion" nillable="true" type="AxdExtType_recVersion" />
      <xs:element minOccurs="0" name="RefCompanyId" nillable="true" type="AxdExtType_selectableDataArea" />
      <xs:element minOccurs="0" name="RefRecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="RefTableId" nillable="true" type="AxdExtType_tableId" />
      <xs:element minOccurs="0" name="Restriction" nillable="true" type="AxdEnum_DocuRestriction" />
      <xs:element minOccurs="0" name="smmTable" nillable="true" type="AxdEnum_boolean" />
      <xs:element minOccurs="0" name="TypeId" nillable="true" type="AxdExtType_DocuTypeId" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="AxdEnum_AxdEntityAction" />
  </xs:complexType>
  <xs:simpleType name="AxdExtType_selectableDataArea">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Company:ID for the company you can select</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="4" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_smmDocuAuthorId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Author:Defines the author of the document.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_ContactPersonId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Contact ID:Identification of the contact.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_smmEncyclopediaItemId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Encyclopedia item ID:Unique encyclopedia item ID</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_Description">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Description:Brief description of transaction.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="60" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_Notes">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Note:Note it field.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_DirPartyId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Address book ID:Address book identification</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_tableId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Table:ID for the table</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Integer" />
  </xs:simpleType>
  <xs:simpleType name="AxdEnum_DocuRestriction">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Restriction:Restriction</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="Internal" />
      <xs:enumeration value="External" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdEnum_boolean">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">:</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="false" />
      <xs:enumeration value="true" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_DocuTypeId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Type:Identification of document type.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AxdEntity_DocuRefJour">
    <xs:sequence>
      <xs:element minOccurs="0" name="ActualCompanyId" nillable="true" type="AxdExtType_selectableDataArea" />
      <xs:element minOccurs="0" name="AuthorId" nillable="true" type="AxdExtType_smmDocuAuthorId" />
      <xs:element minOccurs="0" name="ContactPersonId" nillable="true" type="AxdExtType_ContactPersonId" />
      <xs:element minOccurs="0" name="EncyclopediaItemId" nillable="true" type="AxdExtType_smmEncyclopediaItemId" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="AxdExtType_Description" />
      <xs:element minOccurs="0" name="Notes" nillable="true" type="AxdExtType_Notes" />
      <xs:element minOccurs="0" name="PartyId" nillable="true" type="AxdExtType_DirPartyId" />
      <xs:element minOccurs="0" name="RecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="RecVersion" nillable="true" type="AxdExtType_recVersion" />
      <xs:element minOccurs="0" name="RefCompanyId" nillable="true" type="AxdExtType_selectableDataArea" />
      <xs:element minOccurs="0" name="RefRecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="RefTableId" nillable="true" type="AxdExtType_tableId" />
      <xs:element minOccurs="0" name="Restriction" nillable="true" type="AxdEnum_DocuRestriction" />
      <xs:element minOccurs="0" name="smmTable" nillable="true" type="AxdEnum_boolean" />
      <xs:element minOccurs="0" name="TypeId" nillable="true" type="AxdExtType_DocuTypeId" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="AxdEnum_AxdEntityAction" />
  </xs:complexType>
  <xs:complexType name="AxdEntity_TaxJournalTrans">
    <xs:sequence>
      <xs:element minOccurs="0" name="EUROTriangulation" nillable="true" type="AxdExtType_EUROTriangulation" />
      <xs:element minOccurs="0" name="ExemptCode" nillable="true" type="AxdExtType_TaxExemptCode" />
      <xs:element minOccurs="0" name="InventTransId" nillable="true" type="AxdExtType_InventTransId" />
      <xs:element minOccurs="0" name="PrintCode" nillable="true" type="AxdExtType_TaxWriteCode" />
      <xs:element minOccurs="0" name="RecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="RecVersion" nillable="true" type="AxdExtType_recVersion" />
      <xs:element minOccurs="0" name="SourceBaseAmountCur" nillable="true" type="AxdExtType_TaxBaseCur" />
      <xs:element minOccurs="0" name="SourceCurrencyCode" nillable="true" type="AxdUnion_AxdExtType_CurrencyCode_AxdType_ExtCodeValue" />
      <xs:element minOccurs="0" name="SourceRegulateAmountCur" nillable="true" type="AxdExtType_TaxRegulationAmountCur" />
      <xs:element minOccurs="0" name="SourceTaxAmountCur" nillable="true" type="AxdExtType_TaxAmountCur" />
      <xs:element minOccurs="0" name="TaxAmount" nillable="true" type="AxdExtType_TaxAmount" />
      <xs:element minOccurs="0" name="TaxAutoGenerated" nillable="true" type="AxdExtType_TaxAutoGenerated" />
      <xs:element minOccurs="0" name="TaxBaseAmount" nillable="true" type="AxdExtType_TaxBase" />
      <xs:element minOccurs="0" name="TaxBaseQty" nillable="true" type="AxdExtType_TaxQty" />
      <xs:element minOccurs="0" name="TaxCode" nillable="true" type="AxdExtType_TaxCode" />
      <xs:element minOccurs="0" name="TaxDirection" nillable="true" type="AxdEnum_TaxDirection" />
      <xs:element minOccurs="0" name="TaxGroup" nillable="true" type="AxdExtType_TaxGroup" />
      <xs:element minOccurs="0" name="TaxOrigin" nillable="true" type="AxdEnum_TaxOrigin" />
      <xs:element minOccurs="0" name="TaxPrintDetail" nillable="true" type="AxdEnum_TaxPrintDetail" />
      <xs:element minOccurs="0" name="TaxValue" nillable="true" type="AxdExtType_TaxValue" />
      <xs:element minOccurs="0" name="TransDate" nillable="true" type="AxdExtType_TransDate" />
      <xs:element minOccurs="0" name="TransRecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="TransTableId" nillable="true" type="AxdExtType_tableId" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="AxdEnum_AxdEntityAction" />
  </xs:complexType>
  <xs:simpleType name="AxdExtType_TaxExemptCode">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Exempt code:Code for justification of sales tax exemption.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxBaseCur">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Amount origin:Original amount on which sales tax calculation is based. Shown in the current currency.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdUnion_AxdExtType_CurrencyCode_AxdType_ExtCodeValue">
    <xs:union memberTypes="AxdExtType_CurrencyCode AxdType_ExtCodeValue" />
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_CurrencyCode">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Currency:Current currency code.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="3" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxRegulationAmountCur">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Corrected amount in currency:Amount that the sales tax is being adjusted to.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxAmount">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Sales tax amount:Calculated sales tax amount.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxAutoGenerated">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Auto:Sales tax is automatically calculated or specified by user.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="No" />
      <xs:enumeration value="Yes" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxBase">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Origin:Original amount that the sales tax is calculated from.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxQty">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Quantity:Quantity that the calculation of sales tax is based on</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxCode">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Sales tax code:Code that identifies the sales tax.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdEnum_TaxDirection">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Sales tax direction:Sales tax direction</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="IncomingTax" />
      <xs:enumeration value="OutgoingTax" />
      <xs:enumeration value="UseTax" />
      <xs:enumeration value="TaxExemptPurchase" />
      <xs:enumeration value="TaxExemptSales" />
      <xs:enumeration value="TaxTransaction" />
      <xs:enumeration value="MajorExporterScheme_SG" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdEnum_TaxOrigin">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Origin:Origin</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="Tax" />
      <xs:enumeration value="TaxReporting" />
      <xs:enumeration value="CashDisc" />
      <xs:enumeration value="TaxReversed" />
      <xs:enumeration value="Transfer" />
      <xs:enumeration value="Payment" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdEnum_TaxPrintDetail">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Print:Print</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="TaxCode" />
      <xs:enumeration value="TaxGroup" />
      <xs:enumeration value="NoDetail" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_TaxValue">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Value:Percentage or amount per unit</xs:documentation>
    </xs:annotation>
    <xs:restriction base="AxdType_Decimal">
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AxdEntity_FormLetterRemarks">
    <xs:sequence>
      <xs:element minOccurs="0" name="FormLetter" nillable="true" type="AxdEnum_FormTextType" />
      <xs:element minOccurs="1" name="LanguageId" type="AxdExtType_LanguageId" />
      <xs:element minOccurs="0" name="RecId" nillable="true" type="AxdExtType_recId" />
      <xs:element minOccurs="0" name="RecVersion" nillable="true" type="AxdExtType_recVersion" />
      <xs:element minOccurs="0" name="Txt" nillable="true" type="AxdExtType_FormLetterTxt" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="AxdEnum_AxdEntityAction" />
  </xs:complexType>
  <xs:simpleType name="AxdEnum_FormTextType">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">:</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="None" />
      <xs:enumeration value="LedgerCompanyFrontpage" />
      <xs:enumeration value="LedgerAuditorReport" />
      <xs:enumeration value="LedgerStatement" />
      <xs:enumeration value="LedgerAccountingPrinciples" />
      <xs:enumeration value="LedgerNotes" />
      <xs:enumeration value="CustInvoice" />
      <xs:enumeration value="CustCreditNote" />
      <xs:enumeration value="CustACStatement" />
      <xs:enumeration value="CustACStatementExt" />
      <xs:enumeration value="CustInterestNote" />
      <xs:enumeration value="CustCollectionLetter1" />
      <xs:enumeration value="CustCollectionLetter2" />
      <xs:enumeration value="CustCollectionLetter3" />
      <xs:enumeration value="CustCollectionLetter4" />
      <xs:enumeration value="CustCollectionLetter5" />
      <xs:enumeration value="Vendor" />
      <xs:enumeration value="VendACStatement" />
      <xs:enumeration value="SalesQuotation" />
      <xs:enumeration value="SalesConfirmation" />
      <xs:enumeration value="SalesPackingSlip" />
      <xs:enumeration value="SalesInvoice" />
      <xs:enumeration value="SalesCreditNote" />
      <xs:enumeration value="PurchPurchaseOrder" />
      <xs:enumeration value="Invent" />
      <xs:enumeration value="ProjectQuotation" />
      <xs:enumeration value="ProjectConfirmation" />
      <xs:enumeration value="ProjectPackingSlip" />
      <xs:enumeration value="ProjectInvoice" />
      <xs:enumeration value="ProjectAcontoInvoice" />
      <xs:enumeration value="ProjectCreditNote" />
      <xs:enumeration value="PayRoll" />
      <xs:enumeration value="HRMCourseConfirmation" />
      <xs:enumeration value="HRMCourse" />
      <xs:enumeration value="ReturnSendDocument" />
      <xs:enumeration value="ReturnAcknowledgement" />
      <xs:enumeration value="PurchRFQ" />
      <xs:enumeration value="PurchRFQAccept" />
      <xs:enumeration value="PurchRFQReject" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_LanguageId">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Language:Select the language for the current text.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="7" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AxdExtType_FormLetterTxt">
    <xs:annotation>
      <xs:documentation xml:lang="EN-US">Form note:Form text to be written in the requested form.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>